#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>


void BubbleSort(int* a, int len)
{
	int i = 0;
	for (i = 0; i < len; i++)
	{
		int j = 0;
		for (j = i + 1; j < len; j++)
		{
			if (a[i] > a[j])
			{
				int tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}

	
}


int main()
{
	int a[] = { 10,60,50,90,70,70,3,6,9,8,2,1,1 };
	int len = sizeof(a) / sizeof(a[0]);
	BubbleSort(a, len);

	for (int i = 0; i < len; i++)
	{
		printf("%d ", a[i]);
	}
	return 0;
}